/*
** my_power_it.c for my_power_it in /home/gueux_g/piscine/Jour_05
**
** Made by gregory gueux
** Login   <gueux_g@epitech.net>
**
** Started on  Fri Oct  5 12:05:37 2012 gregory gueux
** Last update Thu Oct 11 20:36:56 2012 gregory gueux
*/

int		my_power_it(int nb, int power)
{
  int		i;
  int		res;

  i = 1;
  res = nb;
  while (i != power)
    {
      nb *= res;
      i++;
    }
  return (nb);
}
